package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.PmsAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.PmsAttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhangxiaosan
 * @email 424207204@qq.com
 * @date 2021-04-18 14:21:09
 */
public interface PmsAttrService extends IService<PmsAttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils getListByCatelogId(String type,Long catelogId, Map<String, Object> params);

    PmsAttrVo getDataById(Long attrId);

    void saveAttr(PmsAttrVo pmsAttr);

    void deleteByIds(List<Long> asList);

    public List<PmsAttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

